<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>奔跑的少年</title>
    <style>
        .box1{
            width: 95px;
            height: 130px;
            margin: 0 auto;
            background-color: #bfa;
            background-image: url(./练习的截图/12/奔跑的少年.png);
            animation: run 1s steps(5) infinite;
        }

        @keyframes run{
            from{
                background-position: 0 0;
            }

            to{
                background-position: -474px 0;
            }
        }
    </style>
</head>
<body>
    <div class="box1"></div>
</body>
</html>